# -*-coding:utf-8 -*-
# File  : rulesUpdate_api.py
# Time  ：2021/11/29 17:51
# Author：author name

from api.manage.manage_base import ManageBase


class RulesUpdateApi(ManageBase):
    def __init__(self, distribution_name, money, type_id):
        super().__init__()
        self.url = self.host + "cloudlottery-manage/carshrules/update"
        self.json = {"distributionName": distribution_name, "operatorId": "c2705fe18f244897992bf3a5a36da710",
                     "money": money, "remark": "", "type": type_id, "id": "17abb29bcd93400598ad20f2084e7e76"}
        self.method = "put"
